package com.bsdsma.visonManagementSystemapp.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.bsdsma.visonManagementSystemapp.dto.*;
import com.bsdsma.visonManagementSystemapp.entity.Teacher;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface TeacherService {
    PageRetDto<Teacher> search(UserSearchDto dto);
    List<Teacher> listAll();
    ListAllRetDto<Teacher> listAllWithRet();
    Teacher add(UserAddDto dto);
    Teacher update(Long id, UserAddDto dto);
    Teacher getById(Long id);
    void delete(Long id);
    int updateById(Teacher entity);
    Long count();
    List<DataGroupByDateDto> countByDay(Date beginDate, Date endDate);
    Teacher getByAccount(String account);
    Teacher getByCellphoneNumber(String cellphoneNumber);
    Teacher findByGonghaoAndStatus(Long gonghao, int status);
    Teacher getByGonghaoAndStatus(Teacher teacher);
    List<Teacher> list(QueryWrapper<Teacher> wrapper);
    Map<String, Object> bulkImport(List<UserAddDto> userList);
} 